def output(list_target):
    for arr in list_target:
        print(" ".join([str(i) for i in arr]))


list01 = [
    [2, 0, 0, 2],
    [2, 2, 0, 0],
    [2, 0, 4, 4],
    [4, 0, 0, 2]
]

output(list01)
